package com.qf.service.impl;

import com.qf.dao.GoodsDao;
import com.qf.pojo.Goods;
import com.qf.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author bss
 * @version V1.0
 * @Project maven
 * @Package com.qf.service.impl
 * @Description:
 * @Date 2022/10/3 13:41
 */
@Service
public class GoodsServiceImpl implements GoodsService {
    @Autowired
    GoodsDao goodsDao;
    @Override
    public Goods findById(int id) {
        Goods byId = goodsDao.findById(id);
        return byId;
    }

    @Override
    public List<Goods> findAll(int id) {
        List<Goods> all = goodsDao.selectDataBytypeld(id);
        return all;
    }
}
